package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;
import com.lanchetech.bean.vo.FarmUserListVO;
import com.lanchetech.bean.vo.FarmUserRankVO;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.FarmUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FarmUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FarmUser record);

    int insertSelective(FarmUser record);

    FarmUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FarmUser record);

    int updateByPrimaryKey(FarmUser record);

    FarmUser findOneByUserId(@Param("userId") Long userId);

    List<FarmUserRankVO> getCowRank();

    List<FarmUserRankVO> getTreeRank();

    List<FarmUserListVO> findAllPage(PageReq req);

    List<FarmUser> findAllByUserIds(@Param("userIds") List<Long> userIds);
}